package com.skt.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.skt.domain.PO.RentalAgreement;
import org.apache.ibatis.annotations.Mapper;

/**
 * 租赁协议 Mapper 接口
 */
@Mapper
public interface RentalAgreementMapper extends BaseMapper<RentalAgreement> {
    
    /**
     * 根据订单ID查询租赁协议
     */
    RentalAgreement selectByOrderId(Long orderId);
    
    /**
     * 根据协议编号查询
     */
    RentalAgreement selectByAgreementNo(String agreementNo);
}